package com.pzdHome.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pzdHome.dao.PuserMapper;
import com.pzdHome.dao.model.Puser;
import com.pzdHome.dao.model.PuserExample;

@Service
public class PuserService {
	@Autowired
	private PuserMapper puserMapper;

	public int countByExample(PuserExample example) {
		return this.puserMapper.countByExample(example);
	}

	public Puser selectByPrimaryKey(Integer id) {
		return this.puserMapper.selectByPrimaryKey(id);
	}

	public List<Puser> selectByExample(PuserExample example) {
		return this.puserMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(Integer id) {
		return this.puserMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Puser record) {
		return this.puserMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Puser record) {
		return this.puserMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(PuserExample example) {
		return this.puserMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Puser record, PuserExample example) {
		return this.puserMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Puser record, PuserExample example) {
		return this.puserMapper.updateByExample(record, example);
	}

	public int insert(Puser record) {
		return this.puserMapper.insert(record);
	}

	public int insertSelective(Puser record) {
		return this.puserMapper.insertSelective(record);
	}

}
